import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let routes = [
  {path: '/', component: () => import('./views/index')},
  {
    path: '/index',
    meta: {title: 'demo'},
    component: () => import('./views/index')
  },
  {
    path: '/upload',
    meta: {title: 'demo2'},
    component: () => import('./components/index')
  }

]

let router = new Router({ routes })

export default router
